// GameNetManagerDlg.h : header file
//

#if !defined(AFX_GAMENETMANAGERDLG_H__D0189C24_C635_4712_9959_DA5E8CF5E289__INCLUDED_)
#define AFX_GAMENETMANAGERDLG_H__D0189C24_C635_4712_9959_DA5E8CF5E289__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SuperGridEx.h"
#include "DlgPropertyInfo.h"
#include "ServerManager.h"
#include "../release/EntityDefine.h"
#include "EasySize.h"

class CGameNetManagerDlg : public CDialog
{
// Construction
public:
	//DECLARE_EASYSIZE;
	CGameNetManagerDlg(CWnd* pParent = NULL);	// standard constructor
	BOOL ShowConfigManager(); 
	BOOL StopServer();
	BOOL StartServer();
	void ResizeUIItems();
	BOOL SetMenuItemState(UINT nID,BOOL IsEnable);
	BOOL UpdateItem(lpTerminalInfo pTerminal);
	
	CArray<lpTerminalInfo,lpTerminalInfo> m_arrTerminal;
// Dialog Data
	//{{AFX_DATA(CGameNetManagerDlg)
	enum { IDD = IDD_GAMENETMANAGER_DIALOG };
	CButton	m_topButtons;
	CStatic	m_Info;
	CStatic	m_Frame;
	CSuperGridEx m_List;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGameNetManagerDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 
	//}}AFX_VIRTUAL

// Implementation
protected:
	CDlgPropertyInfo* m_lpDlgProperty;
	HICON m_hIcon;
	CImageList m_imgList;  
	// Generated message map functions
	//{{AFX_MSG(CGameNetManagerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnBtnScreenMonitor();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedBtnLogin();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GAMENETMANAGERDLG_H__D0189C24_C635_4712_9959_DA5E8CF5E289__INCLUDED_)
